package com.ruoyi.qt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.qt.mapper.QtCollectMapper;
import com.ruoyi.qt.domain.QtCollect;
import com.ruoyi.qt.service.IQtCollectService;

/**
 * 收藏Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-06
 */
@Service
public class QtCollectServiceImpl implements IQtCollectService 
{
    @Autowired
    private QtCollectMapper qtCollectMapper;

    /**
     * 查询收藏
     * 
     * @param collectId 收藏主键
     * @return 收藏
     */
    @Override
    public QtCollect selectQtCollectByCollectId(String collectId)
    {
        return qtCollectMapper.selectQtCollectByCollectId(collectId);
    }

    /**
     * 查询收藏列表
     * 
     * @param qtCollect 收藏
     * @return 收藏
     */
    @Override
    public List<QtCollect> selectQtCollectList(QtCollect qtCollect)
    {
        return qtCollectMapper.selectQtCollectList(qtCollect);
    }

    /**
     * 新增收藏
     * 
     * @param qtCollect 收藏
     * @return 结果
     */
    @Override
    public int insertQtCollect(QtCollect qtCollect)
    {
        return qtCollectMapper.insertQtCollect(qtCollect);
    }

    /**
     * 修改收藏
     * 
     * @param qtCollect 收藏
     * @return 结果
     */
    @Override
    public int updateQtCollect(QtCollect qtCollect)
    {
        return qtCollectMapper.updateQtCollect(qtCollect);
    }

    /**
     * 批量删除收藏
     * 
     * @param collectIds 需要删除的收藏主键
     * @return 结果
     */
    @Override
    public int deleteQtCollectByCollectIds(String[] collectIds)
    {
        return qtCollectMapper.deleteQtCollectByCollectIds(collectIds);
    }

    /**
     * 删除收藏信息
     * 
     * @param collectId 收藏主键
     * @return 结果
     */
    @Override
    public int deleteQtCollectByCollectId(String collectId)
    {
        return qtCollectMapper.deleteQtCollectByCollectId(collectId);
    }
}
